<?php
$is_show =  0;
?>
{foreach from=$navs key=key item=nav}
{if $nav.count gt 0}
<li data="{$nav.type}" rel="{$nav.location_id}" {if $key eq 0}class="act"{/if} >{$nav.name}({$nav.count})</li>
<?php
$is_show = 1;
?>
{/if}
{/foreach}
<?php
if($is_show == 0){
?>
<script type="text/javascript" defer="defer">
	jQuery(function(){
		$(".goods_detail_box ul.detail_nav:first").hide();
		$(".goods_detail_box .detail_cnt:first").parent().hide();
	});
</script>
<?php
}
?>